package com.example.common.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author FanFu
 * @version 1.0
 * @date 2025/11/8 20:08
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class BusinessException extends RuntimeException {
    private Integer code;

    public BusinessException(String message) {
        super(message);
        this.code = 500;
    }

    public BusinessException(Integer code, String message) {
        super(message);
        this.code = code;
    }
}